package com.sofwin.yyb.dao;

import com.sofwin.yyb.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {
    void insert(User user);

    int deleteById(Integer id);

    void updateByNickname(Map<String,Object> map);
    void updateByPhone(Map<String,Object> map);
    void updateByPassword(Map<String,Object> map);
    void updateByAvatar(Map<String,Object> map);

    User selectByUser(User user);
    User selectById(Integer id);

    List<User> selectAllUser();

    List<User> selectAllUserByPage(Map<String,Object> map);

    Integer selectUserCount(String search);
}
